<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<head>
    <meta charset="UTF-8">
    <title>成功</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container" style="height: 100%;">
    <div class="row clearfix" style="position: relative;top:40%;">
        <div class="col-md-12 column">
            <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <img style="cursor: pointer;" onclick="window.close()" title="操作成功！" src="/mobilemode/piclibrary/03-E9_flat/success.png"/>
                <strong style="font-family: 'Microsoft YaHei UI';font-size: x-large;font-weight: bold;">流程操作成功！<a id="show" onclick="window.close()" style="cursor: pointer;" class="alert-link">1秒后关闭</a></strong>
            </div>
        </div>
    </div>
</div>
<%--Demo2:<div id="tipPanel" class="page out" data-title="提示面板">--%>
    <%--<div id="tipPanel-header"></div>--%>
    <%--<div id="tipPanel-break1"></div>--%>
    <%--<div id="tipPanel-v" style="padding-top: 5%;width: 100%;height: 100%; text-align: center;cursor: pointer;" ><img width="40%" height="50%" onclick="window.close()" title="操作成功！" src="/mobilemode/piclibrary/03-E9_flat/success.png"/>--%>
        <%--<p style="padding-left: 10px;padding-right: auto;font-family: 'Microsoft YaHei UI';font-size: x-large;font-weight: bold;">操作成功！</p>--%>
    <%--</div>--%>

    <%--<div id="tipPanel-break2"></div>--%>
    <%--<div id="tipPanel-h"></div>--%>

<%--</div>--%>
<script>
    var t = 1;//设定跳转的时间
    var timer =setInterval("refer()", 500); //启动1秒定时
    var userAgent = navigator.userAgent;
    // alert("userAgent===>"+userAgent);
    function refer() {
        if (t == 0) {
            clearInterval(timer);
            if(userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1){
                // window.history.back();
                // window.history.go(-1);
                document.addEventListener('WeixinJSBridgeReady', function(){ WeixinJSBridge.call('closeWindow'); }, false);
            }else if(userAgent.indexOf('iPhone')>-1){//iphone手机
                WeixinJSBridge.call('closeWindow');
            }else{//PC端
                window.close();
            }
        }
        document.getElementById('show').innerHTML = "" + t + "秒后关闭"; // 显示倒计时
        t--;
    }
</script>
</body>